﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace LanhuFx.Services.Model
{
    public class WebSetConfig
    {
        public string SqlConnect { get; set; }

        public string WebSiteKey { get; set; }

        /// <summary>
        /// 登陆会话有效期
        /// </summary>
        public int TermValidity { get; set; }
    }

    public class WebSetSettingServices
    {
        private readonly IOptions<WebSetConfig> _WebSetSettingServices;
        public WebSetSettingServices(IOptions<WebSetConfig> arg__WebSetSettingServices)
        {
            _WebSetSettingServices = arg__WebSetSettingServices;
        }

        public WebSetConfig WebSetSetting
        {
            get
            {
                return _WebSetSettingServices.Value;
            }
        }
    }
}
